#!/bin/bash
node=(
k8s-master-1
k8s-master-2
k8s-master-3
k8s-node-1
k8s-node-2
)
for node in ${node[@]};do
echo $node
scp -r /etc/hosts root@$node:/etc/hosts >/dev/null 2>&1 
done
